//
//  WMDefine.h
//  WonderMobSDK
//
//  Created by zero on 2020/2/14.
//

#ifndef WMDefines_h
#define WMDefines_h

typedef NS_ENUM(NSInteger, WMAdType) {
    WMAdTypeGDT = 1,
    WMAdTypeBU,
    WMAdTypeMTG,
    WMAdTypeKS,
    WMAdTypeAdMob,
    WMAdTypeVungle = 7,
    WMAdTypeKlein,
    WMAdTypeBaidu,
    WMAdTypeSigmob,
    WMAdTypeInmobi,
    WMAdTypeUnityAds,
};

typedef NS_ENUM(NSInteger, WMAdEventType) {
    WMAdEventTypeRequest,
    WMAdEventTypeFill,
    WMAdEventTypeImpression,
    WMAdEventTypeClick,
    WMAdEventTypeRrequestFrequently,
    WMAdEventTypeCacheExpired,
    WMAdEventTypeRewarDone,
    WMAdEventTypeError,
    WMAdEventTypeShow,
};

#define WONDERMOBSDK_VERSION    @"3.8.0.0"



// 检查本地是否能展示广告的超时时间 （ms）
#define kCHECKLOCALADTIMEMOUT 2000

// 检查本地是否能展示广告的超时时间 （ms）
#define kREQUESTADTIMEMOUT 4000

#define IsPortrait ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait || [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortraitUpsideDown)


static NSString * const kWMLocalPlnasKey = @"WMLocalPlnasKey";

static NSString * const kWMGameConfigKey = @"WMGameConfigKey";


static NSString * const kWMAdConfigChangedKey = @"kWMAdConfigChangedKey";



//输出
//#if DEBUG
//#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
//#else
//#define NSLog(FORMAT, ...) nil
//#endif


#endif /* WMDefine_h */
